home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #4
/
Amiga Plus CD - 1996 - No. 4.iso
/
pd
/
daten
/
flm_v2.17
/
otherfiles
/
english
/
arexx
/
auto.rexx
next >
Wrap
OS/2 REXX Batch file
|
1996-02-05
|
794b
|
43 lines
/*
Script which proves FLM capabilites for automatic translation.
This script translates all of the given words.
*/
arguments=Arg() /* Number of given arguments */
if arguments = 0 then
do
say "Give a word, please!!!"
exit
end
options results
address FLM
do i=1 to words(arg(1)) /* do as long as there are words in the given string */
wort = word(Arg(1),i) /* 1., 2., 3. ... word */
say "Searching" wort
lookword wort
found /* Found? */
if result = 0 then
do
wordanz
anz=RESULT
say anz "Words were found"
do j=1 to anz
takeword j /* Take translations */
say RESULT
end
end
else
do
say "Word is not in dictionary"
takefound
say "Next similar word is" RESULT
end
say
end
exit /* Script ends */